<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<progress value="1" max="100"></progress>
<meter max="100" value="100"></meter>
</body>
<script>
  let pro = document.querySelector("progress")
  let meter = document.querySelector("meter")
  setInterval(()=>{
    if (pro.value >= 100){
      pro.value = 0
    }
    pro.value += 2
    if (meter.value <= 0){
      meter.value = 100
    }
    meter.value -= 2
  },190)
</script>
</html>